﻿<ul class="breadcrumb">
	<li><span class="primary-font"><i class="fa fa-home"></i></span><a href="javascript:;" class="itemHasChild" refTpl="html/pcsuccess/main.tpl" refJs="js/pcsuccess/main.js" ty="1"> 主页</a></li>
	<li>故障报修</li>	 
	<li>故障报修单</li>	 
</ul>

<div class="smart-widget">
	<div class="smart-widget-header">
		<div class="search-input">
			
			<input type="text" class="form-control input-sm inline-block" id="searchParams" name="searchParams">
		</div>
		<span class="smart-widget-option">
            <a href="#" class="widget-refresh-option" id="refreshDiv">
                <i class="fa fa-refresh"></i>
            </a>
        </span>
	</div>
	<div class="smart-widget-inner">
		<div class="smart-widget-hidden-section">
			<ul class="widget-color-list clearfix">
				<li style="background-color:#20232b;" data-color="widget-dark"></li>
				<li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
				<li style="background-color:#23b7e5;" data-color="widget-blue"></li>
				<li style="background-color:#2baab1;" data-color="widget-green"></li>
				<li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
				<li style="background-color:#fbc852;" data-color="widget-orange"></li>
				<li style="background-color:#e36159;" data-color="widget-red"></li>
				<li style="background-color:#7266ba;" data-color="widget-purple"></li>
				<li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
				<li style="background-color:#fff;" data-color="reset"></li>
			</ul>
		</div>
		<div class="smart-widget-body">
			<table class="table table-striped" id="messageTable">
	      		
		    </table>
		</div>
	</div>
</div>
		
<!-- 增加故障报修单模态框 -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" id="addFaultMation" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">新增故障报修单</h4>
            </div>
            <div class="modal-body">
                <form id="addfaultForm" class="form-horizontal form-bordered" role="form">
                    <div class="form-group">
                        <label for="repairTitle" class="col-sm-2 control-label no-padding-right">故障标题:</label>
                        <div class="col-sm-10">
                            <input type="input" class="form-control" id="repairTitle" name="repairTitle" maxLength="100">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="repairText" class="col-sm-2 control-label no-padding-right">故障内容:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="repairText" name="repairText" maxLength="255">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="repairImg" class="col-sm-2 control-label no-padding-right">故障现场图片:</label>
                        <div class="col-sm-10">
                            <input type="input" class="form-control" id="repairImg" name="repairImg" maxLength="15">
                        </div>
                    </div>
                    
                    
                    
                    <div class="form-group">
                        <label for="buildId" class="col-sm-2 control-label no-padding-right">楼号:</label>
                        <div class="col-sm-10">
                        	<select class="form-control" id="build" name="build">
                        		<option >请选择楼号</option>
                        		<option value="1">1</option>
                        		<option value="2">2</option>
                        		<option value="3">3</option>
                        		<option value="4">4</option>
                        		<option value="5">5</option>
                        		<option value="6">6</option>
                        		<option value="7">7</option>
                        		<option value="8">8</option>
                        		<option value="9">9</option>
                        		<option value="10">10</option>
                        		<option value="11">11</option>
                        	</select>
                        </div>
                    </div>
                    <div class="form-group hide" id="unitDiv">
                        <label for="unit" class="col-sm-2 control-label no-padding-right">单元号:</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="unit" name="unit">
                        		
                        	</select>
                        </div>
                    </div>
                    <div class="form-group hide" id="floorDiv">
                        <label for="floor" class="col-sm-2 control-label no-padding-right">楼层号:</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="floor" name="floor">
                            	
                        	</select>
                        </div>
                    </div>
                    <div class="form-group hide" id="roomDiv">
                        <label for="room" class="col-sm-2 control-label no-padding-right">房间号:</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="room" name="room">
                        		
                        	</select>
                        </div>
                       
                    </div>
                    <div class="form-group">
                        <label for="createId" class="col-sm-2 control-label no-padding-right">报修人:</label>
                        <div class="col-sm-10">
                            <input type="input" class="form-control" id="createId" name="createId" maxLength="15">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="faultState" class="col-sm-2 control-label no-padding-right">维修状态:</label>
                        <div class="col-sm-10">
                            <input type="input" class="form-control" id="faultState" name="faultState" maxLength="15">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="repairId" class="col-sm-2 control-label no-padding-right">维修人员:</label>
                        <div class="col-sm-10">
                            <input type="input" class="form-control" id="repairId" name="repairId" maxLength="15">
                        </div>
                    </div>
                    
                    <div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-palegreen">保存</button>
						</div>
					</div>
                </form>
            </div>
        </div>
    </div>
</div>



<div class="modal fade bs-example-modal-lg" tabindex="-1" id="updateFamilyTypeMention" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="closeBtn">×</button>
                <h4 class="modal-title">维修状态修改</h4>
            </div>
            <div class="modal-body">
                <form id="updateFamilyTypeForm" class="form-horizontal form-bordered" role="form">
                    <div class="form-group">
                        <label for="updatefaultState" class="col-sm-2 control-label no-padding-right">维修状态:</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="updatefaultState" name="updatefaultState">
                        		
                        		<option value="1">新提交维修单</option>
                        		<option value="2">已通知维修人员</option>
                        		<option value="3">维修完成</option>
                        		
                        	</select>
                        </div>
                        <br/>
                        <div class="hide" id="serviceManDiv" style="position: relative;top:10px;" >
	                        <label for="serviceMan" class="col-sm-2 control-label no-padding-right">维修人:</label>
	                        <div class="col-sm-10" >
	                        	<!--<input type="input" readonly class="form-control" id="name" name="name" maxLength="15">-->
	                            <select class="form-control" id="updateName" name="updateName">
	                        		
	                        	</select>
	                        		
	                        </div>
                   		</div>
                    </div>
                    
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-palegreen">保存</button>
						</div>
					</div>
                </form>
            </div>
        </div>
    </div>
</div>


<div class="modal fade bs-example-modal-lg" tabindex="-1" id="findRepairInfo" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">报修单详情</h4>
            </div>
            <div class="modal-body">
                <form id="findRepairInfoForm" class="form-horizontal form-bordered" role="form">
                    <div class="form-group">
                        <label for="findrepairType" class="col-sm-2 control-label no-padding-right">报修类型:</label>
                        <div class="col-sm-10">
                            <input type="input" readonly class="form-control" id="findrepairType" name="findrepairType" maxLength="15">
                        </div>
                     </div> 
                    <div class="form-group">
                        <label for="findrepairNumber" class="col-sm-2 control-label no-padding-right">报修单号:</label>
                        <div class="col-sm-10">
                            <input type="input" readonly class="form-control" id="findrepairNumber" name="findrepairNumber" maxLength="15">
                        </div>
                     </div> 
                        
                     <div class="form-group" >
	                     <label for="findrepairTitle" class="col-sm-2 control-label no-padding-right">故障标题:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findrepairTitle" name="findrepairTitle" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findrepairText" class="col-sm-2 control-label no-padding-right">故障内容:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findrepairText" name="findrepairText" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findfamilyName" class="col-sm-2 control-label no-padding-right">报修人姓名:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findfamilyName" name="findfamilyName" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findhInfo" class="col-sm-2 control-label no-padding-right">房间信息:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findhInfo" name="findhInfo" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findcreateTime" class="col-sm-2 control-label no-padding-right">报修时间:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findcreateTime" name="findcreateTime" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findrepairDate" class="col-sm-2 control-label no-padding-right">上门维修时间:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findrepairDate" name="findrepairDate" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findnoticeTime" class="col-sm-2 control-label no-padding-right">派修时间:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findnoticeTime" name="findnoticeTime" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findserviceName" class="col-sm-2 control-label no-padding-right">维修人姓名:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findserviceName" name="findserviceName" maxLength="15">
	                     </div>
                   	 </div>
                     <div class="form-group" >
	                     <label for="findrepairTime" class="col-sm-2 control-label no-padding-right">完成时间:</label>
	                     <div class="col-sm-10" >
	                       	<input type="input" readonly class="form-control" id="findrepairTime" name="findrepairTime" maxLength="15">
	                     </div>
                   	 </div>
                    
                    
					
                </form>
            </div>
        </div>
    </div>
</div>

<script id="selectServiceMan" type="text/x-handlebars-template">
	{{#each rows}}
		<option value="{{id}}">{{name}}</option>
	{{/each}}
</script>


